import React, { useState, useEffect, useRef } from 'react';
 
  const cRef = useRef();
 
//使用子组件暴露出来的方法   cRef.current
const handleAgree = async () => {
const res = await cRef.current.onFinish();
}
 
  <Modal
        title="云端情报库"
        visible={isShow}
        onOk={handleAgree}
        onCancel={handleOff}
        destroyOnClose={true}
      >
//CloudIntelligence 子组件
        <CloudIntelligence
          cRef={cRef}
          data={dataform}
        />
      </Modal>